<template>
	<view>
		<!-- 用户信息展示页面 -->
		<view class="info">
			<view class="content">
				<view class="nickname">{{userInfo.nickName}}</view>
				<view class="welcome">欢迎您光临四海香！</view>
			</view>
			<view>
				<image class="avatar" :src="userInfo.avatarUrl"></image>
			</view>
		</view>
		
		<!-- 跳转Navigator的列表 -->
		<view class="list">
			<view class="">
				<navigator class="list-item" url="../lishi/lishi">
					<view>
						<image class="icon" src="../../static/image/icon_order.png" mode="">烹饪历史</image>
					</view>
					<view>></view>
				</navigator>
			</view>
			
			<view class="">
				<navigator class="list-item" url="../fenxiang/fenxiang">
					<view>
						<image class="icon" src="../../static/image/icon_money.png" mode="">支付记录</image>
					</view>
					<view>></view>
				</navigator>
			</view>
			
			
			<view class="">
				<navigator class="list-item" url="../complaint/complaint">
					<view>
						<image class="icon" src="../../static/image/icon_msg.png" mode="">举报投诉</image>
					</view>
					<view>></view>
				</navigator>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userInfo :{}
			}
		},
		methods: {
			
		},
		onLoad() {
			console.log(this,"10:04")
			this.userInfo = uni.getStorageSync('userInfo')
			console.log("10:05",this.userInfo)
		}
	}
</script>

<style lang="less">
	.info {
		width: 690rpx;
		margin: auto;
		display: flex;
		justify-content: space-between;
		align-items: center;
		.content {
			.nickname {
				font-weight: bold;
			}
			.welcome {
				color: gray;
				font-size: 30rpx;
			}
		}
		
		.avatar {
			width: 150rpx;
			height: 150rpx;
			margin-right: 30rpx;
			border-radius: 50%;
		}
		
	}
	.list{
		height: 350rpx;
		display: flex;
		flex-direction: column;
		justify-content:space-between;
		box-sizing: border-box;
		
		.list-item{
			height: 100rpx;
			width: 720rpx;
			margin-left: 30rpx;
			margin-right: 30rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 30rpx 30rpx;
			box-sizing: border-box;
			font-size: 50rpx;
			font-weight: 600;
			box-shadow: 0 3rpx 0 #ccc;
			
			
			
			.icon{
				width: 50rpx;
				height: 45rpx;
			}
		}
	}
</style>
